<?php require_once('Connections/aciitu.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") 
{
  if (PHP_VERSION < 6) {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  }

  $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

  switch ($theType) {
    case "text":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;    
    case "long":
    case "int":
      $theValue = ($theValue != "") ? intval($theValue) : "NULL";
      break;
    case "double":
      $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
      break;
    case "date":
      $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
      break;
    case "defined":
      $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
      break;
  }
  return $theValue;
}
}

mysql_select_db($database_aciitu, $aciitu);
$query_RsSlide = "SELECT * FROM slide WHERE status = '1' ORDER BY id ASC";
$RsSlide = mysql_query($query_RsSlide, $aciitu) or die(mysql_error());
$row_RsSlide = mysql_fetch_assoc($RsSlide);
$totalRows_RsSlide = mysql_num_rows($RsSlide);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>MobilySlider</title>
<link href="slide/css/default.css" rel="stylesheet" type="text/css" />
<script src="slide/js/jquery.js" type="text/javascript"></script>
<script src="slide/js/mobilyslider.js" type="text/javascript"></script>
<script src="slide/js/init.js" type="text/javascript"></script>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style></head>

<body>
	<div id="content">
		
		<div class="slider">
			<div class="sliderContent">
            
				<?php do { ?>
				  <div class="item"> <img src="fotos/intro/<?php echo $row_RsSlide['arquivo']; ?>" alt="<?php echo $row_RsSlide['titulo']; ?>" title="<?php echo $row_RsSlide['titulo']; ?>" /></div>
				<?php } while ($row_RsSlide = mysql_fetch_assoc($RsSlide)); ?>

			</div>
		</div>
		
	</div>

</body>
</html>
<?php
mysql_free_result($RsSlide);
?>
